package com.longshihan.carservice.dao;

import com.longshihan.carservice.model.NoticeDomain;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface NoticeDao {

    int addNotice(NoticeDomain domain) ;

    int delNotice(@Param("id") String id);

    NoticeDomain getNoticeById(@Param("id") String id);

    List<NoticeDomain> getNotices(@Param("userId") String userId);

}
